writing modules?

writing modules?

am 03.12.2009 15:35:38 von Zach Uram

Morning,

I would like to make my own apache module (in C) for Linux but have no
idea where to start. Any guides on doing this?

Thanks!
Zach

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: writing modules?

am 03.12.2009 15:52:23 von ef-lists

Zachary Uram wrote:
> I would like to make my own apache module (in C) for Linux but
> have no idea where to start. Any guides on doing this?

You may want to try out http://www.apachetutor.org/ . I can also
recommend the book (on the page), it's really worth the price.
This helps you getting familiar with general module structure.

The apxs tool (delivered with Apache) will get you started
with a sample module. I think it was axps -g -n .

After that, try to look at modules which offer some related
features to the one you want to write. Look how they did it, try
to understand why and keep experimenting. Try to understand the
concepts of the APR. Just go through the online documention of
the APR functions as you go through code of other modules.
E.g. pool are a very important concept which you should get
familiar with.

Regards,
Edgar

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: writing modules?

am 03.12.2009 15:56:46 von John Hudak

--0016e6d77e3e36f59a0479d433c3
Content-Type: text/plain; charset=ISO-8859-1

I assume you are developing for Apache 2?
You might want to do some searching and reading on Apache modules API:
http://www.linuxdocs.org/HOWTOs/Apache-Overview-HOWTO-12.htm l
http://modules.apache.org/doc/Intro_API_Prog.html

As well as other 'house keeping' activities that must be done:
http://threebit.net/tutorials/apache2_modules/tut1/tutorial1 .html

O'Reiley has some pretty good books detailing the process....

-John



On Thu, Dec 3, 2009 at 9:35 AM, Zachary Uram wrote:

> Morning,
>
> I would like to make my own apache module (in C) for Linux but have no
> idea where to start. Any guides on doing this?
>
> Thanks!
> Zach
>
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

--0016e6d77e3e36f59a0479d433c3
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

I assume you are developing for Apache 2?
You might want to do some sear=
ching and reading on Apache modules API:
..org/HOWTOs/Apache-Overview-HOWTO-12.html">http://www.linux docs.org/HOWTOs/=
Apache-Overview-HOWTO-12.html


http://module=
s.apache.org/doc/Intro_API_Prog.html


As well as other 'house=
keeping' activities that must be done:
et/tutorials/apache2_modules/tut1/tutorial1.html">http://thr eebit.net/tutor=
ials/apache2_modules/tut1/tutorial1.html



O'Reiley has some pretty good books detailing the process....
r>-John



On Thu, Dec 3, 2009 at 9:=
35 AM, Zachary Uram < m">netrek@gmail.com> wrote:

204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Morning,



I would like to make my own apache module (in C) for Linux but have no

idea where to start. Any guides on doing this?



Thanks!

Zach



------------------------------------------------------------ ---------

The official User-To-User support forum of the Apache HTTP Server Project.<=
br>
See <URL: lank">http://httpd.apache.org/userslist.html> for more info.

To unsubscribe, e-mail: g">users-unsubscribe@httpd.apache.org

=A0 " =A0 from the digest: @httpd.apache.org">users-digest-unsubscribe@httpd.apache.org

For additional commands, e-mail: org">users-help@httpd.apache.org






--0016e6d77e3e36f59a0479d433c3--

Re: writing modules?

am 03.12.2009 16:01:05 von Tom Evans

On Thu, Dec 3, 2009 at 2:35 PM, Zachary Uram wrote:
> Morning,
>
> I would like to make my own apache module (in C) for Linux but have no
> idea where to start. Any guides on doing this?
>
> Thanks!
> Zach
>

I'd read some books:

http://www.amazon.co.uk/Apache-Modules-Book-Application-Deve lopment/dp/0132409674/ref=sr_1_1?ie=UTF8&s=books&qid=1259852 319&sr=8-1

or

http://www.amazon.co.uk/Writing-Apache-Modules-Perl-Customiz ing/dp/156592567X/ref=sr_1_2?ie=UTF8&s=books&qid=1259852319& sr=8-2

if you still use apache 1.3.

http://www.amazon.co.uk/Apache-Definitive-Guide-Ben-Laurie/d p/0596002033/ref=sr_1_6?ie=UTF8&s=books&qid=1259852319&sr=8- 6
is ok, but doesn't really go in-depth about module development.


Cheers

Tom

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: writing modules?

am 03.12.2009 16:04:57 von Zach Uram

Thanks everyone! Yes for Apache 2.x

Zach

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: writing modules?

am 03.12.2009 16:38:28 von Jeff Trawick

On Thu, Dec 3, 2009 at 10:04 AM, Zachary Uram wrote:
> Thanks everyone! Yes for Apache 2.x

Don't forget the modules in the source distribution, particularly the examples.

httpd 2.2.x has modules/experimental/mod_example. httpd trunk/2.3.x,
for future httpd 2.4, has improvements in modules/examples/mod*.c, but
some use APIs that don't work in httpd 2.2.x.

One way to use the large set of modules in the source distribution is
when some httpd (ap_) or APR function looks like it may solve a
problem; search for the uses of that function throughout the source.

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: writing modules?

am 03.12.2009 16:46:49 von Zach Uram

Thanks Jeff will do.

Zach

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: writing modules?

am 03.12.2009 17:23:27 von Rich Bowen

--Apple-Mail-13-229849627
Content-Type: text/plain;
charset=US-ASCII;
format=flowed;
delsp=yes
Content-Transfer-Encoding: 7bit


On Dec 3, 2009, at 09:56 , John Hudak wrote:

> I assume you are developing for Apache 2?
> You might want to do some searching and reading on Apache modules API:
> http://www.linuxdocs.org/HOWTOs/Apache-Overview-HOWTO-12.htm l
> http://modules.apache.org/doc/Intro_API_Prog.html
>
> As well as other 'house keeping' activities that must be done:
> http://threebit.net/tutorials/apache2_modules/tut1/tutorial1 .html
>
> O'Reiley has some pretty good books detailing the process....

No, O'Reilly doesn't have any books on the subject at all. The only
book on the subject is Nick Kew's book.

If you're referring to the Eagle book, please note that it's ten years
old and focuses primarily on Perl. It was a good book at the time, but
is now mostly a bookend. At 700 pages, it plays that role effectively
and attractively.

--
Rich Bowen
rbowen@rcbowen.com




--Apple-Mail-13-229849627
Content-Type: text/html;
charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

-webkit-line-break: after-white-space; ">

On Dec 3, 2009, =
at 09:56 , John Hudak wrote:

class=3D"Apple-interchange-newline">
class=3D"Apple-style-span" style=3D"border-collapse: separate; color: =
rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: =
normal; font-variant: normal; font-weight: normal; letter-spacing: =
normal; line-height: normal; orphans: 2; text-align: auto; text-indent: =
0px; text-transform: none; white-space: normal; widows: 2; word-spacing: =
0px; -webkit-border-horizontal-spacing: 0px; =
-webkit-border-vertical-spacing: 0px; =
-webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: =
auto; -webkit-text-stroke-width: 0px; ">I assume you are developing for =
Apache 2?
You might want to do some searching and reading on Apache =
modules API:
href=3D"http://www.linuxdocs.org/HOWTOs/Apache-Overview-HOWT O-12.html">htt=
p://www.linuxdocs.org/HOWTOs/Apache-Overview-HOWTO-12.html

href=3D"http://modules.apache.org/doc/Intro_API_Prog.html">h ttp://modules.=
apache.org/doc/Intro_API_Prog.html


As well as other 'house =
keeping' activities that must be done:
href=3D"http://threebit.net/tutorials/apache2_modules/tut1/t utorial1.html"=
>http://threebit.net/tutorials/apache2_modules/tut1/tutorial 1.html

=

O'Reiley has some pretty good books detailing the =
process....

No, O'Reilly doesn't have =
any books on the subject at all. The only book on the subject is Nick =
Kew's book.

If you're referring to the Eagle =
book, please note that it's ten years old and focuses primarily on Perl. =
It was a good book at the time, but is now mostly a bookend. At 700 =
pages, it plays that role effectively and attractively.

apple-content-edited=3D"true"> style=3D"border-collapse: separate; color: rgb(0, 0, 0); font-family: =
Helvetica; font-size: medium; font-style: normal; font-variant: normal; =
font-weight: normal; letter-spacing: normal; line-height: normal; =
orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; =
white-space: normal; widows: 2; word-spacing: 0px; =
-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: =
0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: =
auto; -webkit-text-stroke-width: 0px; ">
break-word; -webkit-nbsp-mode: space; -webkit-line-break: =
after-white-space; ">
--
Rich Bowen

div>

=

=

--Apple-Mail-13-229849627--

Re: writing modules?

am 03.12.2009 17:35:11 von Tom Evans

On Thu, Dec 3, 2009 at 4:23 PM, Rich Bowen wrote:
>
> On Dec 3, 2009, at 09:56 , John Hudak wrote:
>
> I assume you are developing for Apache 2?
> You might want to do some searching and reading on Apache modules API:
> http://www.linuxdocs.org/HOWTOs/Apache-Overview-HOWTO-12.htm l
> http://modules.apache.org/doc/Intro_API_Prog.html
>
> As well as other 'house keeping' activities that must be done:
> http://threebit.net/tutorials/apache2_modules/tut1/tutorial1 .html
>
> O'Reiley has some pretty good books detailing the process....
>
> No, O'Reilly doesn't have any books on the subject at all. The only book on
> the subject is Nick Kew's book.
> If you're referring to the Eagle book, please note that it's ten years old
> and focuses primarily on Perl. It was a good book at the time, but is now
> mostly a bookend. At 700 pages, it plays that role effectively and
> attractively.

Harsh, thats one of my favourite books :/

The Apaloosa book (Apache : The definitive guide) has 2 chapters on
2.x module development and API, numbering ~ 100 pages, which isn't
much more than the Eagle had - like you said, mostly perl.

Cheers

Tom

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: writing modules?

am 03.12.2009 21:56:33 von John Hudak

--0016e6d77e3ef1c2730479d93907
Content-Type: text/plain; charset=ISO-8859-1

The o'Rieley book I had in mind is by MacEchren (?) and Stein...and it is
with Perl and C...

On Thu, Dec 3, 2009 at 11:23 AM, Rich Bowen wrote:

>
> On Dec 3, 2009, at 09:56 , John Hudak wrote:
>
> I assume you are developing for Apache 2?
> You might want to do some searching and reading on Apache modules API:
> http://www.linuxdocs.org/HOWTOs/Apache-Overview-HOWTO-12.htm l
> http://modules.apache.org/doc/Intro_API_Prog.html
>
> As well as other 'house keeping' activities that must be done:
> http://threebit.net/tutorials/apache2_modules/tut1/tutorial1 .html
>
> O'Reiley has some pretty good books detailing the process....
>
>
> No, O'Reilly doesn't have any books on the subject at all. The only book on
> the subject is Nick Kew's book.
>
> If you're referring to the Eagle book, please note that it's ten years old
> and focuses primarily on Perl. It was a good book at the time, but is now
> mostly a bookend. At 700 pages, it plays that role effectively and
> attractively.
>
> --
> Rich Bowen
> rbowen@rcbowen.com
>
>
>
>

--0016e6d77e3ef1c2730479d93907
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

The o'Rieley=A0 book I had in mind is by MacEchren (?) and Stein...and =
it is with Perl and C...

On Thu, Dec 3, 2=
009 at 11:23 AM, Rich Bowen < rcbowen.com" target=3D"_blank">rbowen@rcbowen.com> wrote:


204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
d-wrap: break-word;">

On Dec 3, 2009, at 09:56 , John Hud=
ak wrote:



or: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: no=
rmal; font-variant: normal; font-weight: normal; letter-spacing: normal; li=
ne-height: normal; text-indent: 0px; text-transform: none; white-space: nor=
mal; word-spacing: 0px;">I assume you are developing for Apache 2?


You might want to do some searching and reading on Apache modules API:
<=
a href=3D"http://www.linuxdocs.org/HOWTOs/Apache-Overview-HOWT O-12.html" ta=
rget=3D"_blank">http://www.linuxdocs.org/HOWTOs/Apache-Overv iew-HOWTO-12.ht=
ml


ank">http://modules.apache.org/doc/Intro_API_Prog.html

As well a=
s other 'house keeping' activities that must be done:
"http://threebit.net/tutorials/apache2_modules/tut1/tutorial 1.html" target=
=3D"_blank">http://threebit.net/tutorials/apache2_modules/tu t1/tutorial1.ht=
ml




O'Reiley has some pretty good books detailing the process.... >

No, O'Reilly doesn't have any bo=
oks on the subject at all. The only book on the subject is Nick Kew's b=
ook.



If you're referring to the Eagle book, please note =
that it's ten years old and focuses primarily on Perl. It was a good bo=
ok at the time, but is now mostly a bookend. At 700 pages, it plays that ro=
le effectively and attractively.



color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style=
: normal; font-variant: normal; font-weight: normal; letter-spacing: normal=
; line-height: normal; text-indent: 0px; text-transform: none; white-space:=
normal; word-spacing: 0px;"> >




--0016e6d77e3ef1c2730479d93907--